package dao.impl;

import java.sql.SQLException;
import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;

import module.CusLog;
import dao.ABSBasicDAO;
import domain.vo.queryObject;


public class CusLogDAOImpl extends ABSBasicDAO<CusLog> {

	/**
	 * 构造方法
	 * @param sqlMapClient
	 */
	public CusLogDAOImpl(SqlMapClient sqlMapClient) {
		super(sqlMapClient);
	}
	
	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getAll()
	 */
	@Override
	public List<CusLog> getAll() throws SQLException {
		// TODO Auto-generated method stub
		return sqlMapClient.queryForList("CusLog.getAll");
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getById(java.lang.String)
	 */
	@Override
	public CusLog getById(String id) throws SQLException {
		// TODO Auto-generated method stub
		return (CusLog)sqlMapClient.queryForObject("CusLog.getId",id);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getByPK()
	 */
	@Override
	public CusLog getByPK() {
		// TODO Auto-generated method stub
		return super.getByPK();
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#insertT(java.lang.Object)
	 */
	@Override
	public void insertT(CusLog t) throws SQLException {
		sqlMapClient.insert("CusLog.insertCusLogInfo", t);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#updateT(java.lang.Object)
	 */
	@Override
	public void updateT(CusLog t) throws SQLException {
		// TODO Auto-generated method stub
		super.updateT(t);
	}
	
	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getObjectByQueryObject(domain.vo.queryObject)
	 */
	@Override
	public List<CusLog> getObjectByQueryObject(queryObject queryObject)
			throws SQLException {
		// TODO Auto-generated method stub
		return sqlMapClient.queryForList("CusLog.getObjectByQueryObject", queryObject);
	}
}
